<div class="m-page-title m-page-title-b1">
	<h2 class="u-tt">性能设置</h2>
</div>
<div class="m-form">
	<form name="" action="{$url|'Setting/saveData'}" method="post" id="form">
		<fieldset>
			<div class="formitm">
				<label class="lab">错误调试：</label>
				<div class="ipt">
					<?php if($config['APP']['DEBUG']){ ?>
					<label class="u-opt">
						<input type="radio" name="APP[DEBUG]" value="true"  checked="checked" />
						开启</label>
					
					<label class="u-opt">
						<input type="radio" name="APP[DEBUG]" value="false"  />
						关闭</label>
					<?php }else{?>
					<label class="u-opt">
						<input type="radio"  name="APP[DEBUG]" value="true" />
						开启</label>
					
					<label class="u-opt">
						<input type="radio"  name="APP[DEBUG]" value="false"  checked="checked"  />
						关闭</label>
					<?php }?>
					<p>开启后显示详细错误调试，非调试建议关闭</p>
				</div>
			</div>
			<div class="formitm">
				<label class="lab">伪静态：</label>
				<div class="ipt">
					<?php if($config['APP']['URL_REWRITE_ON']){ ?>
					<label class="u-opt">
						<input type="radio" name="APP[URL_REWRITE_ON]" value="true" checked="checked" />
						开启</label>
					
					<label class="u-opt">
						<input type="radio" name="APP[URL_REWRITE_ON]" value="false"  />
						关闭</label>
					<?php }else{?>
					<label class="u-opt">
						<input type="radio" name="APP[URL_REWRITE_ON]" value="true" />
						开启</label>
					
					<label class="u-opt">
						<input type="radio" name="APP[URL_REWRITE_ON]" value="false"  checked="checked" />
						关闭</label>
					<?php }?>
					<p>开启后去除URL中的index.php，但是服务器必须支持REWRITE</p>
				</div>
			</div>
			<div class="formitm">
				<label class="lab">生成静态：</label>
				<div class="ipt">
					<?php if($config['APP']['HTML_CACHE_ON']){ ?>
					<label class="u-opt">
						<input type="radio" name="APP[HTML_CACHE_ON]" value="true" checked="checked"/>
						开启</label>
					
					<label class="u-opt">
						<input type="radio" name="APP[HTML_CACHE_ON]" value="false" />
						关闭</label>
					<?php }else{?>
					<label class="u-opt">
						<input type="radio" name="APP[HTML_CACHE_ON]" value="true" />
						开启</label>
					
					<label class="u-opt">
						<input type="radio" name="APP[HTML_CACHE_ON]" value="false"  checked="checked" />
						关闭</label>
					<?php }?>
					<p>智能按照规则生成静态缓存，无需手动干预</p>
				</div>
			</div>
			<div class="formitm">
				<label class="lab">数据库缓存：</label>
				<div class="ipt">
					<?php if($config['DB']['DB_CACHE_ON']){ ?>
					<label class="u-opt">
						<input type="radio" name="DB[DB_CACHE_ON]" value="true"   checked="checked"/>
						开启</label>
					
					<label class="u-opt">
						<input type="radio" name="DB[DB_CACHE_ON]" value="false" />
						关闭</label>
					<?php }else{?>
					<label class="u-opt">
						<input type="radio" name="DB[DB_CACHE_ON]" value="true" />
						开启</label>
					
					<label class="u-opt">
						<input type="radio" name="DB[DB_CACHE_ON]" value="false"  checked="checked" />
						关闭</label>
					<?php }?>
					<p>开启后减轻服务器查询压力</p>
				</div>
			</div>
			<div class="formitm">
				<label class="lab">模板缓存：</label>
				<div class="ipt">
					<?php if($config['TPL']['TPL_CACHE_ON']){ ?>
					<label class="u-opt">
						<input type="radio" name="TPL[TPL_CACHE_ON]" value="true" checked="checked" />
						开启</label>
					
					<label class="u-opt">
						<input type="radio" name="TPL[TPL_CACHE_ON]" value="false" />
						关闭</label>
					<?php }else{?>
					<label class="u-opt">
						<input type="radio" name="TPL[TPL_CACHE_ON]" value="true"  />
						开启</label>
					
					<label class="u-opt">
						<input type="radio" name="TPL[TPL_CACHE_ON]" value="false" checked="checked"  />
						关闭</label>
					<?php }?>
					<p>开启后减少模板编译次数</p>
				</div>
			</div>
			<div class="formitm">
				<label class="lab">SESSION缓存：</label>
				<div class="ipt">
					<?php if($config['SESSION']['DB_CACHE_ON']){ ?>
					<label class="u-opt">
						<input type="radio" name="SESSION[DB_CACHE_ON]" value="true" checked="checked" />
						开启</label>
					
					<label class="u-opt">
						<input type="radio" name="SESSION[DB_CACHE_ON]" value="false" />
						关闭</label>
					<?php }else{?>
					<label class="u-opt">
						<input type="radio" name="SESSION[DB_CACHE_ON]" value="true"  />
						开启</label>
					
					<label class="u-opt">
						<input type="radio" name="SESSION[DB_CACHE_ON]" value="false" checked="checked"  />
						关闭</label>
					<?php }?>
					<p>服务器对session支持不好的情况下建议开启</p>
				</div>
			</div>
			<div class="formitm formitm-1  formitm-2">
				<button class="u-btn" type="submit">保存配置</button>
				<button class="u-btn s-btn-c3" type="reset">重置</button>
				<span class="status" id="status"></span> </div>
		</fieldset>
	</form>
</div>
<script>
Do.ready('base','form','dialog',function() {
	$('#form').duxForm();
});
</script>